package com.cvo.scrumtoolkit.client.entities;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

import com.googlecode.objectify.annotation.Entity;
@Entity
public class Project implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@javax.persistence.Id
	private String projectname;
	
	private long Id;
	private int aantalSprints=0;
	private String scrummaster;
	//private List<BacklogItem> backlogItems;
//	private LinkedList<Sprint> sprints;
	
	public Project(){
	//	backlogItems= new LinkedList<BacklogItem>();
	//	sprints = new LinkedList<Sprint>();
	}
	
	public String getProjectname() {
		return projectname;
	}

	public void setProjectname(String projectname) {
		this.projectname = projectname;
	}

	public Long getId() {
		return Id;
	}

	public String getScrummaster() {
		return scrummaster;
	}

	public void setScrummaster(String scrummaster) {
		this.scrummaster = scrummaster;
	}

	//tijdelijke oplossing voor het aanmaken van projecten
	static long MaxId= 0;
	
	public static Project createProject(){
		Project project = new Project();
		project.Id=MaxId++;
		return project;
		}

	//public List<BacklogItem> getBacklogItems() {
	/*	return backlogItems;
	}

	public void setBacklogItem(BacklogItem backlogItem){
		backlogItems.add(backlogItem);
		
	}

	public Sprint startSprint(LinkedList<BacklogItem> sprintBacklogItems) {
		int newSprintNumber = this.sprints.size() + 1;
		Sprint sprint = new Sprint(newSprintNumber);
		sprint.setBacklogItems(sprintBacklogItems);
		this.sprints.add(sprint);
		return sprint;
	}
	public Sprint getSprint(int n){
		Sprint spr = sprints.get(n);
		return spr;
	}
	public LinkedList<Sprint> getSprints(){
		return sprints;
		
	}
*/
	public int getAantalSprints() {
		return aantalSprints;
	}

	public void setAantalSprints(int aantalSprints) {
		this.aantalSprints = aantalSprints;
	}
	
	

}
